package com.kaifamiao.io.d0923;

import java.lang.reflect.Array;
import java.util.Arrays;

public class ArrayDemo {

    public static void main(String[] args) {
        int[] nums = (int[]) Array.newInstance(int.class, 5); // new int[5]

//        int[][] nums = (int[][]) Array.newInstance(int.class, 2, 3); // new int[2][3]
//        System.out.println(Arrays.toString(nums[0]));
//        System.out.println(Arrays.toString(nums[1]));

        Array.getInt(nums, 0);

    }
}
